﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Style x:Key="InactiveTextBlockStyle" TargetType="{x:Type TextBlock}">
        <Setter Property="Background" Value="WhiteSmoke" />
        <Setter Property="Foreground" Value="LightGray" />
        <Setter Property="SnapsToDevicePixels" Value="True" />
    </Style>

    <Style TargetType="ListBoxItem" x:Key="ContainerStyle"> 
        <Setter Property="Opacity" Value="0.5" />
        <Setter Property="MaxHeight" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Height}" />
        <Setter Property="MaxWidth" Value="20" />
        <Setter Property="HorizontalContentAlignment" Value="Stretch" />
        <Setter Property="HorizontalAlignment" Value="Stretch" />
        <Setter Property="VerticalContentAlignment" Value="Stretch" />
        <Setter Property="VerticalAlignment" Value="Stretch" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ListBoxItem">
                    <Grid>
                        
                        <Ellipse Fill="Silver" />
                        <ContentPresenter HorizontalAlignment="Center"
                            VerticalAlignment="Center" Margin="10"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>

        <Style.Triggers>
            <Trigger Property="IsSelected" Value="True">
                <Trigger.Setters>
                    <Setter Property="Opacity" Value="1.0" />
                    <Setter Property="MaxWidth" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualWidth}" />
                    <Setter Property="Margin" Value="20" />
                </Trigger.Setters>
            </Trigger>
        </Style.Triggers>
    </Style>

</ResourceDictionary>